package serialize;

import java.io.File;
import java.io.IOException;

/**
 * 测试 自定义的反序列化 ( 肯定是有缺陷的 )
 */
public class DeserializationTest1 {

	public static void main(String[] args) throws IOException {
		
		PersonDao pd = new PersonDao();
		
		File f = new File( "student.dat" );
		
		Person p = pd.read( f );
		
		System.out.println( p.getId() );
		System.out.println( p.getName() );
		System.out.println( p.getGender() );
		System.out.println( p.getBirthdate() );

	}

}
